package io.renren.modules.jxgkphone.controller;


import io.renren.modules.jxgkphone.entity.UserFeedback;
import io.renren.modules.jxgkphone.service.UserFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feedback")
public class UserFeedbackController {
    @Autowired
    UserFeedbackService userFeedbackService;
    @RequestMapping("/InsertFeedback")
    public String InsertFeedback(@RequestBody UserFeedback uf){
        userFeedbackService.InsertUserFeedback(uf);
        return "操作完成";
    }
    @RequestMapping("/Test")
    public UserFeedback Test(){
        UserFeedback uf=new UserFeedback();
        uf.setFeedbackcontent("写的不错");
        uf.setFeedbacktime("2017-11-12-10:00");
        uf.setFeederid("2017111200");
        return uf;
    }

}
